from hashlib import md5


def encrypt(text):
    """
    :param text: str
    :return:
    """
    m = md5()
    text = text.encode()
    m.update(text)
    return m.hexdigest()

